<?php

namespace Drinkiit\BlogBundle\Tests\Entity;

use Drinkiit\BlogBundle\Entity\Article;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class ArticleTest extends WebTestCase
{
	protected $article;

	public function setUp()
	{
		parent::setUp();
		$this->article = new Article();
	}
	
	// Tests unitaires concernant l'ORM

	public function testgetQuantite()
	{
		$quantite = 3;
		$this->article->setQuantite($quantite);
		$this->assertEquals($quantite, $this->article->getQuantite());
	}
	
	public function testgetSpecificite()
	{
		$specificite = "Sans oignons";
		$this->article->setSpecificite($specificite);
		$this->assertEquals($specificite, $this->article->getSpecificite());
	}
}

